package io.sage.modules.basics.dao;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import io.sage.modules.basics.entity.BGoodsAllocation;
import io.sage.modules.basics.entity.BGoodsAllocationExample;

public interface BGoodsAllocationMapper {
    int countByExample(BGoodsAllocationExample example);

    int deleteByExample(BGoodsAllocationExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BGoodsAllocation record);

    int insertSelective(BGoodsAllocation record);

    List<BGoodsAllocation> selectByExample(BGoodsAllocationExample example);

    BGoodsAllocation selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BGoodsAllocation record, @Param("example") BGoodsAllocationExample example);

    int updateByExample(@Param("record") BGoodsAllocation record, @Param("example") BGoodsAllocationExample example);

    int updateByPrimaryKeySelective(BGoodsAllocation record);

    int updateByPrimaryKey(BGoodsAllocation record);
    
    /**
     * 货区列表
     * @param params
     * @return
     */
    List<BGoodsAllocation> selectGoodsAllocationList(Map<String, Object> params);
    /**
     * 批量删除
     * @param ids
     * @return
     */
	int deleteBatchIds(Integer[] ids);

    int insertBatch(List<BGoodsAllocation> list);

    int updateIsUsedById(Integer id);
}